﻿using MVCTest003.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MVCTest003.Models;

namespace MVCTest003.Models
{
    public class MusicStoreDbInitializer:System.Data.Entity.DropCreateDatabaseAlways<MusicStoreDB>
    {
        protected override void Seed(MusicStoreDB context)
        {
            context.Artists.Add(new Artist { Name = "贝多芬"});

            context.Genres.Add(new Genre { Name = "交响曲",Desription="命运交响曲" });

            base.Seed(context);
        }
    }
}